
using AutoMapper;
using Yozeev.BusinessLogic;
using Yozeev.BusinessLogic.Dtos;

namespace Yozeev.BusinessLogic.Mapper
{

	/// <summary>
    /// 配置Device的AutoMapper
    /// </summary>
	internal static class DeviceMapper
    {
        public static void CreateMappings(IMapperConfigurationExpression configuration)
        {
            configuration.CreateMap <Device,DeviceListDto>();
            configuration.CreateMap <DeviceListDto,Device>();

            configuration.CreateMap <DeviceEditDto,Device>();
            configuration.CreateMap <Device,DeviceEditDto>();

        }
	}
}
